<template>
  <div class="app-container">
    <el-form ref="form" :model="opInfo" :rules='opRules' label-width="80px">
      <el-form-item label="会员名" prop="name">
        <el-input v-model="opInfo.name"></el-input>
      </el-form-item>
      <el-form-item label="操作值" prop="changeNum">
        <el-input-number v-model="opInfo.changeNum" :step="1"></el-input-number>
      </el-form-item>
      <el-form-item label="操作积分">
        <el-select v-model="opInfo.type" placeholder="请选择积分类型">
          <el-option label="电子币" value="elec"></el-option>
          <el-option label="原始基因链" value="originGene"></el-option>
          <el-option label="流通基因链" value="flowGene"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="操作说明" prop="illustration">
        <el-input v-model="opInfo.illustration"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click.prevent="onSubmit">提交</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>
<script>
export default {
  name: 'manual',
  data() {
    return {
      opInfo: {
        name: '',
        changeNum: 0,
        type: '',
        illustration: ''
      },
      opRules: {
        name: [
          { required: true, message: '请输入会员名', trigger: 'blur' }
        ],
        illustration: [
          { required: true, message: '请输入操作说明', trigger: 'blur' }
        ]
      }
    }
  },
  methods: {}
}
</script>
<style lang="scss" scoped>

</style>
